import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		while(true){
			StringBuilder str = new StringBuilder("");
			int n = sc.nextInt();
			for(int i=0;i<n;i++){
				str.append(i);
			}
			int x = sc.nextInt();
			int y = sc.nextInt();
			System.out.println(str.substring(x, y));
		}

	}

}

